Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Fix where on struct declarations#137

Open
Xt-8 wants to merge 4 commits intozargony:masterfrom
Xt-8:tuple-struct-where
Open

Fix where on struct declarations#137
Xt-8 wants to merge 4 commits intozargony:masterfrom
Xt-8:tuple-struct-where

Conversation

@Xt-8
Copy link
Copy Markdown

@Xt-8 Xt-8 commented Jun 26, 2018

Add dedicated struct declaration that fixes where clause at the end of
tuple structs. Also adds type highlighting to where on normal structs
to match where on impl.

#131

Edit:

Also adds type highlighting to where on normal structs
to match where on impl.

And by this I mean it highlights the types after a struct's where.

Xt-8 added 4 commits June 26, 2018 00:21
Add dedicated struct declaration that fixes `where` clause at the end of
tuple structs. Also adds type highlighting to `where` on normal structs
to match `where` on `impl`.
@zargony zargony added the bug label Aug 30, 2018
@zargony
Copy link
Copy Markdown
Owner

zargony commented Aug 30, 2018

Nice work, thanks!

Would this also apply to enum declarations? As far as I know, they can have where statements as well?

@Xt-8
Copy link
Copy Markdown
Author

Xt-8 commented Sep 9, 2018

It was for fixing where on tuple struct specifically. I think the where clause works on enums already, and I don't believe there is a tuple enum. I haven't been using rust for a bit however, so I can't be sure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants